package com.alibaba.basic.mapper;

import com.alibaba.basic.query.BaseQuery;
import java.util.List;

public interface BaseMapper<T> {
    //基础查询
    void save(T t);

    void update(T t);

    void remove(Long id);

    T loadById(Long id);

    List<T> loadAll();

    /**
     * 分页查询
     *
     */
    //查询总条数
    Long queryCount(BaseQuery query);
    //查询当前的页数
    List<T> queryData(BaseQuery query);

    // 批量删除
    void atchDelete(Long[] id);
}
